package com.fan.txl.mock.api.service;

import com.fan.txl.data.auth.Auth;
import com.fan.txl.data.auth.AuthReq;
import com.fan.txl.data.base.Rsp;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by os on 2017/4/2.
 * Title
 */

public interface AuthService {

     String service="com.xgggh.srv.oauth2";

     //token
     String methodToken="Oauth2.Token";
     String requestToken="{\"userName\":\"15108280907\",\"password\":\"qw123456\",\"grantType\": \"password\",\"scope\":\"read\",\"clientId\":\"e2b6abfc-3576-4fe7-9f69-1f647169a827\",\"clientSecret\":\"e24e45c9-a7bc-4248-be78-17b32bea1544\"}";

     //revoke
     String methodRevoke="Oauth2.Revoke";
     String requestRevoke="{\"Token\":\"2fbfe5d6-4c70-4b34-9d05-0f7a24ad6552\",\"TokenTypeHint\":\"refreshTokenHint\",\"clientId\":\"41571387-5003-4379-4ba9-49e1ba341ed0\",\"clientSecret\":\"secret_update\"}";

     //Authorize
     String methodAuthorize="Oauth2.Authorize";
     String requestAuthorize="{\"userName\":\"15108280907\",\"password\":\"qw123456\",\"grantType\": \"password\",\"scope\":\"read\",\"clientId\":\"e2b6abfc-3576-4fe7-9f69-1f647169a827\",\"clientSecret\":\"e24e45c9-a7bc-4248-be78-17b32bea1544\"}";

     //Logout
     String methodLogout="Oauth2.Logout";
     String requestLogout="{\"userName\":\"15108280907\",\"password\":\"qw123456\",\"grantType\": \"password\",\"scope\":\"read\",\"clientId\":\"e2b6abfc-3576-4fe7-9f69-1f647169a827\",\"clientSecret\":\"e24e45c9-a7bc-4248-be78-17b32bea1544\"}";

}
